<?php
/**
* 
*/
class SF_Album_PolymerizationController extends Mage_Core_Controller_Front_Action
{
    public function mobileAction(){
        $code = $this->getRequest()->getParam('code');
        $page = $this->getRequest()->getParam('ul_item');
        $block = $this->getLayout()->createBlock('album/mobile');
        if($code == 'new'){
            $collection = $block->newprouduct($page);
        }elseif ($code == 'bestsales'){
            $collection = $block->bestsalesprouduct($page);
        }elseif ($code == 'saleoff'){
            $collection = $block->saleoffprouduct($page);
        }
        echo json_encode($collection);
    }

}